package one.stand.zuul.util;

import com.netflix.zuul.exception.ZuulException;
import one.stand.advice.ResultEnum;
import org.springframework.http.HttpStatus;

public class OneZuulException extends ZuulException {
    private ResultEnum resultEnum;

    public OneZuulException(ResultEnum resultEnum) {
        super(resultEnum.getMessage(), HttpStatus.OK.value(), resultEnum.getMessage());
        this.resultEnum = resultEnum;
    }

    public ResultEnum getResultEnum() {
        return resultEnum;
    }
}
